package fairygui.editor.settings
{
   import fairygui.GComboBox;
   import fairygui.editor.Consts;
   import fairygui.editor.gui.EUIPackage;
   
   public class PublishSettings
   {
       
      
      public var filePath:String;
      
      public var fileName:String;
      
      public var packageCount:int;
      
      public var genCode:Boolean;
      
      public var atlasList:Vector.<AtlasSettings>;
      
      public var excludedList:Array;
      
      public function PublishSettings()
      {
         var _loc2_:AtlasSettings = null;
         super();
         this.atlasList = new Vector.<AtlasSettings>(11);
         var _loc1_:int = 0;
         while(_loc1_ < this.atlasList.length)
         {
            _loc2_ = new AtlasSettings();
            _loc2_.name = "";
            this.atlasList[_loc1_] = _loc2_;
            _loc1_++;
         }
         this.excludedList = [];
      }
      
      public function fillCombo(param1:GComboBox, param2:EUIPackage) : void
      {
         var _loc3_:Array = param1.items;
         var _loc4_:Array = param1.values;
         var _loc5_:Vector.<AtlasSettings> = param2.publishSettings.atlasList;
         var _loc6_:int = 0;
         while(_loc6_ < _loc5_.length)
         {
            if(_loc5_[_loc6_].name)
            {
               _loc3_[_loc6_] = _loc6_ + ":" + _loc5_[_loc6_].name;
            }
            else if(_loc6_ == 0)
            {
               _loc3_[_loc6_] = Consts.g.text80;
            }
            else
            {
               _loc3_[_loc6_] = _loc6_;
            }
            _loc4_[_loc6_] = "" + _loc6_;
            _loc6_++;
         }
         _loc3_.splice(1,0,Consts.g.text81,Consts.g.text81 + "(NPOT)");
         _loc4_.splice(1,0,"alone","alone_npot");
         _loc3_.length = _loc5_.length + 2;
         _loc4_.length = _loc5_.length + 2;
         param1.items = _loc3_;
         param1.values = _loc4_;
         param1.visibleItemCount = int.MAX_VALUE;
      }
   }
}
